package org.android.jvoicexml.tts_demo;

public class TTSEventManager extends Thread {

    private AndroidSynthesizedOutput androidSynthesizedOutput;
    private Object renderLock;

    public TTSEventManager(AndroidSynthesizedOutput androidSynthesizedOutput, Object renderLock) {
        this.androidSynthesizedOutput = androidSynthesizedOutput;
        this.renderLock = renderLock;
        android.os.Debug.waitForDebugger();
    }

    public void run() {
        androidSynthesizedOutput.start();
        synchronized (renderLock) {
            try {
                renderLock.wait();
            } catch (InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
    }
}
	


